package com.ipet.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ipet.order.pojo.OrderDetail;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    @Select("select * from tb_order_detail where order_id = #{id}")
    List<OrderDetail> findDetailsByOrderId(Long id);
}
